﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAO;
using DTO;

namespace BUS
{
    public static class NoiNhanBUS
    {
        public static List<NoiNhanDTO> LoadAll(int maHeThong, bool order)
        {
            try
            {
                return NoiNhanDAO.LoadAll(maHeThong, order);
            }
            catch (Exception e)
            {
                throw e;
            }

        }
        public static List<NoiNhanDTO> Load(int maCongVan)
        {
            try
            {
                return NoiNhanDAO.Load(maCongVan);
            }
            catch (Exception e)
            {
                throw e;
            }
        }
        public static bool Add(NoiNhanDTO tmp)
        {
            try
            {
                return NoiNhanDAO.Add(tmp);
            }
            catch (Exception e)
            {
                throw e;
            }

        }
        public static bool Edit(NoiNhanDTO tmp)
        {
            try
            {
                return NoiNhanDAO.Edit(tmp);
            }
            catch (Exception e)
            {
                throw e;
            }
        }
    }
}
